package com.ying.core.utils;

import com.startx.http.wordfilter.WordContext;
import com.startx.http.wordfilter.WordFilter;
import org.springframework.stereotype.Component;

@Component
public class WordFilterUtil {

    public WordContext getWordContext() {
        return new WordContext("/sensitive/blacklist.txt","/sensitive/whitelist.txt");
    }

    public WordFilter getWordFilter() {
        WordContext context = getWordContext();
        return new WordFilter(context);
    }
}
